package com.example.entity;

import java.io.Serializable;

/**
 * 请假信息表
 */
public class Leave implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;
    // 请假事由
    private String name;
    // 员工id
    private Integer employeeId;
    // 部门id
    private Integer departmentId;
    // 开始日期
    private String start;
    // 结束日期
    private String end;
    // 审批进度(待主管审批、主管审批未通过、待管理员审批、管理员审批未通过、审批已通过)
    private String process;
    // 审批说明
    private String note;

    // 关联属性
    // 员工姓名
    private String employeeName;
    // 部门名称
    private String departmentName;

    // 自定义属性
    // 放假状态status
    // (后台查到的一组数据，其中两个日期数据start、end，请假通过，后台判断今天是否在日期数据之前、之间、之后，
    // 页面上在该条数据后追加一行状态，分情况在页面上显示“未开始”或者“休假中”或者“已结束”)
    private String status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getProcess() {
        return process;
    }

    public void setProcess(String process) {
        this.process = process;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}